package com.example.mybatisplusdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: 默苍璃
 * @date: 2022-03-18 00:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
//@TableName("t_user")
public class User {

    /**
     * 设置注解自增
     */
    @TableId(value = "uid", type = IdType.AUTO)
    private Long id;

    @TableField("user_name")
    private String name;

    private Integer age;
    private String email;

    /**
     * 逻辑删除字段
     */
    @TableLogic
    private Integer isDeleted;

}
